import request from '@/utils/request';
// 陪玩列表
export function playerList (params) {
  return request({
    url: 'v1/playwith/list',
    method: 'get',
    params
  });
}
// 收入详情
export function receiveList (params) {
  return request({
    url: 'v1/playwith/receiveList',
    method: 'get',
    params
  });
}
// 分类列表
export function classifyList (params) {
  return request({
    url: 'v1/playwith/classify',
    method: 'get',
    params
  });
}

// 添加分类
export function addClassify (data) {
  return request({
    url: 'v1/playwith/addClassify',
    method: 'post',
    data: data
  });
}
// 编辑分类
export function editClassify (data) {
  return request({
    url: 'v1/playwith/editClassify',
    method: 'post',
    data: data
  });
}
// 陪玩审核列表
export function stateList (params) {
  return request({
    url: 'v1/playwith/stateList',
    method: 'get',
    params
  });
}
// 陪玩服务价格
export function priceList (params) {
  return request({
    url: 'v1/playwith/priceList',
    method: 'get',
    params
  });
}
// 城市列表
export function cityList (params) {
  return request({
    url: 'v1/playwith/cityList',
    method: 'get',
    params
  });
}
// 陪玩编辑
export function playwithEdit (data) {
  return request({
    url: 'v1/playwith/edit',
    method: 'post',
    data: data
  });
}
// 删除分類
export function deleteClassify (data) {
  return request({
    url: 'v1/playwith/deleteClassify',
    method: 'post',
    data: data
  });
}

// 审核
export function state (data) {
  return request({
    url: 'v1/playwith/state',
    method: 'post',
    data: data
  });
}
